/**
 * 
 */
package com.baijia.tianxiao.push.enums;

import org.apache.commons.lang3.StringUtils;

/**
 * @author leiruiqi
 * 
 * 设备领域类型
 */
public enum DeviceDomainEnum {

	WEB_PC,
	
	WEB_PAD,
	
	MOBILE,
	
	;
	public static DeviceDomainEnum getByName(String name){
		for(DeviceDomainEnum domain:DeviceDomainEnum.values()){
			if(StringUtils.equals(domain.name(), name)){
				return domain;
			}
		}
		return null;
	}
	
}
